草庐IT

c++ - xvalues : differences between non class types and class types

全部标签

c++ - 什么表达式创建 xvalues?

我正在尝试理解C++11的概念。我所说的标准草案:Anxvalue(an“eXpiring”value)alsoreferstoanobject,usuallyneartheendofitslifetime(sothatitsresourcesmaybemoved,forexample).Anxvalueistheresultofcertainkindsofexpressionsinvolvingrvaluereferences(8.3.2).[Example:Theresultofcallingafunctionwhosereturntypeisanrvaluereferenceis